package com.yu.waterstation.common.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("管理员操作日志")
@Data
@TableName("sys_admin_log")
public class AdminLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private String username;

    @ApiModelProperty("eg: [insert][/system/user]")
    private String api;

    @ApiModelProperty("eg:修改送水任务")
    private String detail;

    @ApiModelProperty("成功与否")
    private boolean success;

    @ApiModelProperty("请求参数")
    private String params;

    @ApiModelProperty("返回结果")
    private Object result;

    @ApiModelProperty("eg: com.yu.waterstation.app.xxx.yyy()")
    private String method;

    @ApiModelProperty("ip地址")
    private String ip;

    @ApiModelProperty("操作时间")
    private Date timestamp;
}
